package com.hisense.hiioc.hismartplate.robot.engine;


import com.hisense.hiioc.hismartplate.entity.dto.MesRobot;
import com.hisense.hiioc.hismartplate.robot.factory.DirectiveFactory;
import com.hisense.hiioc.hismartplate.utils.UUIDGenerator;

import java.util.List;

/**
 * @Auther:biexiande@hisense.com
 * @date:2018/7/3 15:27
 * @des  参数原样返回
 */
public class DuerosInputHandler extends AbstractInputHandler {

    @Override
    public void doProcess(MesRobot mesRobot, List<String> directiveList, IInputHander nextHandlelr) {
        String input = mesRobot.getText();
        String token = UUIDGenerator.create32Key();
        DirectiveFactory.generateDuerosDiective(directiveList, token, input, mesRobot.getSessionid());
        DirectiveFactory.generateSetSessionIdDirective(directiveList,"");
    }
}